<template>
    <div class="home2">
        <el-container>
            <el-header>
                <Header />
            </el-header>
            <el-container>
                <el-aside width="200px">

                    <Menu />
                </el-aside>
                <el-container>
                    <el-main height="1000px">
                        <Breadcrumb />
                        <!-- 添加这行，确保路由组件能渲染 -->
                        <keep-alive>
                            <router-view></router-view> <!-- 缓存子路由组件 -->
                        </keep-alive>
                    </el-main>
                    <el-footer>
                        <Footer />
                    </el-footer>
                </el-container>
            </el-container>
        </el-container>

    </div>
</template>
<script>
import Header from '@/components/common/Header.vue'
import Footer from '@/components/common/Footer.vue'
import Menu from '@/components/common/Menu.vue'
import Breadcrumb from '@/components/common/Breadcrumb.vue'

export default {
    components: { Header, Footer, Menu, Breadcrumb },


    data() {
        return {

        }

    }
}

// 在此添加组件的其他逻辑
</script>
<style scoped>
/* 在此添加组件的样式 */


.el-header,
.el-footer,
.el-main,
.el-aside {
    background-color: #B3C0D1;
    color: #333;
    text-align: center;
    line-height: 60px;
}



.el-main {
    background-color: pink;
}

.home2 {
    width: 100%;
    height: 100vh;
    display: flex;
}
</style>